-- GENERATED SPELL FOR [Skeletal Highborne] --


function spell0_11476(pUnit, Event) --@Sunder Armor,n/a--
pUnit:FullCastSpellOnTarget(21081,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11476', 30259, 1)
end

function Sorts_11476(pUnit, Event)
local choix_sorts_11476 = math.random(0, 0)
if choix_sorts_11476 == 0 then
pUnit:RegisterEvent('spell0_11476', 1, 1)
end
end

function mob11476_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11476', math.random(1500, 3000), 1)
end

function mob11476_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11476_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11476_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11476, 1, 'mob11476_Action')
RegisterUnitEvent(11476, 2, 'mob11476_Leave')
RegisterUnitEvent(11476, 3, 'mob11476_Kill')
RegisterUnitEvent(11476, 4, 'mob11476_Die')
